/*
 * Utility.h
 *
 *  Created on: 16-Feb-2013
 *      Author: abhijeet
 */

#ifndef UTILITY_H_
#define UTILITY_H_
#include <iostream>
#include <fstream>
#include "Instruction.h"
#include <sstream>


using namespace std;

extern unordered_map<int, Instruction*> instructionMap;
extern unordered_map<int, char*> memoryMap;
extern int *Memory;
extern int *Register;
extern int PC;
extern int memoryLimit;
extern int InstLimit;


extern int *Memory;
extern int *Register;

void GetRegistersValues(string &);
void GetMemoryValues(string &);
void WriteDisassemplyToFile(char const* filename);
void WriteSimulationToFile(int,int,char *);
int ValidateInputFile(char const* filename);


#endif /* UTILITY_H_ */
